package edu.hwadee.entity;

import java.util.Date;

/**
 * Ownem entity. @author MyEclipse Persistence Tools
 */

public class Ownem implements java.io.Serializable {

	// Fields

	private Integer ownEmid;
	private Company companyByBelong;
	private Company companyBySupplier;
	private Em em;
	private String selfNumber;
	private Float buyPrice;
	private Short controlType;
	private Boolean affiliation;
	private Short depreciationState;
	private Date buyDate;
	private Short origin;
	private Float techParameter;
	private Short changingWay;

	// Constructors

	/** default constructor */
	public Ownem() {
	}

	/** full constructor */
	public Ownem(Company companyByBelong, Company companyBySupplier, Em em, String selfNumber, Float buyPrice,
			Short controlType, Boolean affiliation, Short depreciationState, Date buyDate, Short origin,
			Float techParameter, Short changingWay) {
		this.companyByBelong = companyByBelong;
		this.companyBySupplier = companyBySupplier;
		this.em = em;
		this.selfNumber = selfNumber;
		this.buyPrice = buyPrice;
		this.controlType = controlType;
		this.affiliation = affiliation;
		this.depreciationState = depreciationState;
		this.buyDate = buyDate;
		this.origin = origin;
		this.techParameter = techParameter;
		this.changingWay = changingWay;
	}

	// Property accessors

	public Integer getOwnEmid() {
		return this.ownEmid;
	}

	public void setOwnEmid(Integer ownEmid) {
		this.ownEmid = ownEmid;
	}

	public Company getCompanyByBelong() {
		return this.companyByBelong;
	}

	public void setCompanyByBelong(Company companyByBelong) {
		this.companyByBelong = companyByBelong;
	}

	public Company getCompanyBySupplier() {
		return this.companyBySupplier;
	}

	public void setCompanyBySupplier(Company companyBySupplier) {
		this.companyBySupplier = companyBySupplier;
	}

	public Em getEm() {
		return this.em;
	}

	public void setEm(Em em) {
		this.em = em;
	}

	public String getSelfNumber() {
		return this.selfNumber;
	}

	public void setSelfNumber(String selfNumber) {
		this.selfNumber = selfNumber;
	}

	public Float getBuyPrice() {
		return this.buyPrice;
	}

	public void setBuyPrice(Float buyPrice) {
		this.buyPrice = buyPrice;
	}

	public Short getControlType() {
		return this.controlType;
	}

	public void setControlType(Short controlType) {
		this.controlType = controlType;
	}

	public Boolean getAffiliation() {
		return this.affiliation;
	}

	public void setAffiliation(Boolean affiliation) {
		this.affiliation = affiliation;
	}

	public Short getDepreciationState() {
		return this.depreciationState;
	}

	public void setDepreciationState(Short depreciationState) {
		this.depreciationState = depreciationState;
	}

	public Date getBuyDate() {
		return this.buyDate;
	}

	public void setBuyDate(Date buyDate) {
		this.buyDate = buyDate;
	}

	public Short getOrigin() {
		return this.origin;
	}

	public void setOrigin(Short origin) {
		this.origin = origin;
	}

	public Float getTechParameter() {
		return this.techParameter;
	}

	public void setTechParameter(Float techParameter) {
		this.techParameter = techParameter;
	}

	public Short getChangingWay() {
		return this.changingWay;
	}

	public void setChangingWay(Short changingWay) {
		this.changingWay = changingWay;
	}

}